<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增商家店铺')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-WxShop-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">商铺名称：</label>
                <div class="col-sm-8">
                    <input name="shopName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">店铺电话：</label>
                <div class="col-sm-8">
                    <input name="shopTel" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">折扣比例：</label>
                <div class="col-sm-8">
                    <input name="shopDiscount" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">商户余额：</label>
                <div class="col-sm-8">
                    <input name="shopMoney" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">会员总数：</label>
                <div class="col-sm-8">
                    <input name="shopUserCount" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">商品个数：</label>
                <div class="col-sm-8">
                    <input name="shopGoodCount" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">商铺分类id：</label>
                <div class="col-sm-8">
                    <input name="shopTypeId" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">地区id：</label>
                <div class="col-sm-8">
                    <input name="shopCityId" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">店铺地址：</label>
                <div class="col-sm-8">
                    <input name="shopAdress" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">纬度：</label>
                <div class="col-sm-8">
                    <input name="shopLatitude" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">经度：</label>
                <div class="col-sm-8">
                    <input name="shopLongitude" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">logo图片：</label>
                <div class="col-sm-8">
                    <input name="shopLogo" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">门头照：</label>
                <div class="col-sm-8">
                    <input name="shopHeadImg" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">营业执照：</label>
                <div class="col-sm-8">
                    <input name="shopSellImg" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">商铺简介图片：</label>
                <div class="col-sm-8">
                    <input name="shopDetailImg" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">0无效，1有效，2未知：</label>
                <div class="col-sm-8">
                    <select name="isValid" class="form-control m-b" th:with="type=${@dict.getType('is_valid')}" required>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">null：</label>
                <div class="col-sm-8">
                    <input name="remarks" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "WxShop/WxShop"
        $("#form-WxShop-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-WxShop-add').serialize());
            }
        }
    </script>
</body>
</html>